<?php

namespace App\Models\Admin;

use Illuminate\Database\Eloquent\Model;

/**
 * Class Website
 */
class Seting extends Model
{
    protected $table = 'setting';

    public $timestamps = true;

    protected $fillable = [
        'site_name',
        'keywords',
        'desc',
        'slogan',
        'icp',
        'icpLink',
        'policesn',
        'policeLink',
        'statistics_code',
        'close',
        'closed_reason',
    ];

    protected $guarded = [];


    /**
     * @param \DateTime|int $value
     * @return false|int
     * @author dividez
     */
    public function fromDateTime($value){
        return strtotime(parent::fromDateTime($value));
    }
}